import type { Request, ResponseToolkit } from "@hapi/hapi";
import Hapi from "@hapi/hapi";
let route: Hapi.ServerRoute<Hapi.ReqRefDefaults> = {
  path: "/",
  method: "get",
  handler: async (r: Request, h: ResponseToolkit) => {
    try {
      return "welcome";
    } catch (error) {
      return error;
    }
  },
  options: {
    auth: false,
  },
};
export default route;
